package com.besttone;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public class LoginActivity extends Activity {
    private static final String TAG = "ZReader";
    private EditText field_userName;
    private EditText field_password;
    private Button button_login;
    private Button button_cancel;
    private TextView view_appName;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Window win = getWindow();
        win.requestFeature(Window.FEATURE_CUSTOM_TITLE);//注意顺序
        setContentView(R.layout.main);
        win.setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title);//注意顺序
        findViews();
        setListensers();
    }
    
    private void findViews() {
    	try {
    		field_userName = (EditText)findViewById(R.id.user_name);
    		field_password = (EditText)findViewById(R.id.password);
			button_login = (Button)findViewById(R.id.login);
			button_cancel = (Button)findViewById(R.id.login);
		} catch (Exception e) {
			e.printStackTrace();
			Log.e(TAG, "error" + e.toString());
			Toast.makeText(LoginActivity.this,R.string.error_msg,Toast.LENGTH_SHORT).show();
		}
    }
    
    private void setListensers() {
    	
    }
}